// TState.cpp : Defines the entry point for the console application.
//

#include "http_server.h"
#include "common.h"

#include <plog/Log.h>
#include <plog/Appenders/ColorConsoleAppender.h>

int main(int argc, char **argv)
{
    // 初始化日志
    plog::ColorConsoleAppender<plog::TxtFormatter> consoleAppender;
    plog::init(plog::debug, "server.log", 1024 * 1024 * 5, 5).addAppender(&consoleAppender);

    // 初始化本地配置
    common::initConfig();

    // 开启服务
    LOGD << "server begin start...";
    MyServerApp app;
    app.run(argc, argv);

    return 0;
}
